package com.hzd.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * api承租者
 *
 * @author christ
 * @date 6/23/2015
 */
@Entity
public class ApiTenant implements ablaze.framework.security.apitenant.ApiTenant {

    @Id
    @Column(length = 32)
    private String id;

    /**
     * 名称
     */
    @Column(length = 100)
    private String name;

    /**
     * 备注
     */
    private String remark;

    public String getId() {
        return id;
    }

    public ApiTenant setId(String id) {
        this.id = id;
        return this;
    }

    @Override
    public String getApiKey() {
        return getId();
    }

    @Override
    public String getApiSecret() {
        return null;
    }

    public String getName() {
        return name;
    }

    public ApiTenant setName(String name) {
        this.name = name;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public ApiTenant setRemark(String remark) {
        this.remark = remark;
        return this;
    }
}
